package repository

import (
	"wechat-push/pkg/http"
	"wechat-push/pkg/logger"
)

const ciBaUrl = "http://open.iciba.com/dsapi/"

type CiBaResponse struct {
	Content string `json:"content"`
	Note    string `json:"note"`
}

func GetCiBaQuote() (resp CiBaResponse, err error) {
	err = http.Get(ciBaUrl, &resp)
	if err != nil {
		logger.Log.Error("http.Get err : ", err)
		return
	}
	return
}
